package com.ourteam.product.ui.dao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;

/**
 * Template Name : DAO查询对象 Template Version : 1 Template Last Modfiy Date : Sat Aug 19 10:06:32 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:10 Warning ! This file will be overwrite when
 * regenerate !
 */
public class ProductUIDomainDAOQueryBean extends BaseQueryBean {

  public ProductUIDomainDAOQueryBean() {
    super();
  }

  public ProductUIDomainDAOQueryBean(BaseQueryBean aQueryBean) {
    super(aQueryBean);
  }

  public ProductUIDomainDAOQueryBean(BaseQueryBean aQueryBean, Map tableReplaceMap) {
    super(aQueryBean, tableReplaceMap);
  }

  public Criteria createCriteria() {

    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  protected Criteria createCriteriaInternal() {
    return new Criteria(this);
  }

  public void addIdSelectProperty() {
    addIdSelectProperty("id");
  }

  public void addIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIDomainDAO.Id, aAlias);
    } else {
      addSelectProperty(IProductUIDomainDAO.Id, "id");
    }
  }

  public void addDomainCodeSelectProperty() {
    addDomainCodeSelectProperty("domainCode");
  }

  public void addDomainCodeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIDomainDAO.DomainCode, aAlias);
    } else {
      addSelectProperty(IProductUIDomainDAO.DomainCode, "domainCode");
    }
  }

  public void addDomainNameSelectProperty() {
    addDomainNameSelectProperty("domainName");
  }

  public void addDomainNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIDomainDAO.DomainName, aAlias);
    } else {
      addSelectProperty(IProductUIDomainDAO.DomainName, "domainName");
    }
  }

  public void addStatusSelectProperty() {
    addStatusSelectProperty("status");
  }

  public void addStatusSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIDomainDAO.Status, aAlias);
    } else {
      addSelectProperty(IProductUIDomainDAO.Status, "status");
    }
  }

  public void addRemarksSelectProperty() {
    addRemarksSelectProperty("remarks");
  }

  public void addRemarksSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIDomainDAO.Remarks, aAlias);
    } else {
      addSelectProperty(IProductUIDomainDAO.Remarks, "remarks");
    }
  }

  public void addAllSelectProperties() {

    addIdSelectProperty();

    addDomainCodeSelectProperty();

    addDomainNameSelectProperty();

    addStatusSelectProperty();

    addRemarksSelectProperty();
  }

  public static class Criteria extends BaseWhereCriterion<ProductUIDomainDAOQueryBean> {

    protected Criteria(ProductUIDomainDAOQueryBean aParentObject) {
      super(aParentObject);
    }

    public Criteria andIdIsNull() {
      addCriterion(IProductUIDomainDAO.Id + " is null");
      return this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion(IProductUIDomainDAO.Id + " is not null");
      return this;
    }

    public Criteria andIdIsNotEmpty() {
      addCriterion(
          IProductUIDomainDAO.Id + " is not null AND " + IProductUIDomainDAO.Id + " <> ''");
      return this;
    }

    public Criteria andIdIsEmpty() {
      addCriterion(
          "(" + IProductUIDomainDAO.Id + " is null OR " + IProductUIDomainDAO.Id + " = '')");
      return this;
    }

    public Criteria andIdEqualTo(long value) {
      return andIdEqualTo(Long.valueOf(value));
    }

    public Criteria andIdEqualTo(java.lang.Long value) {

      addCriterion(IProductUIDomainDAO.Id + " = ", value, "id");
      return this;
    }

    public Criteria andIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Id);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotEqualTo(long value) {
      return andIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andIdNotEqualTo(java.lang.Long value) {

      addCriterion(IProductUIDomainDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToOrIsNull(long value) {
      return andIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IProductUIDomainDAO.Id + " is null OR " + IProductUIDomainDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Id);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThan(long value) {
      return andIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andIdGreaterThan(java.lang.Long value) {

      addCriterion(IProductUIDomainDAO.Id + " >", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Id);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(long value) {
      return andIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIDomainDAO.Id + " >=", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Id);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThan(long value) {
      return andIdLessThan(Long.valueOf(value));
    }

    public Criteria andIdLessThan(java.lang.Long value) {

      addCriterion(IProductUIDomainDAO.Id + " <", value, "id");
      return this;
    }

    public Criteria andIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Id);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(long value) {
      return andIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIDomainDAO.Id + " <=", value, "id");
      return this;
    }

    public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Id);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdIn(long[] values) {
      if (values.length == 1) {
        return andIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andIdEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andIdEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Id + " in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Id + " not in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Id + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdBetween(long value1, long value2) {
      addCriterion(IProductUIDomainDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIDomainDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(long value1, long value2) {
      addCriterion(IProductUIDomainDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIDomainDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andDomainCodeIsNull() {
      addCriterion(IProductUIDomainDAO.DomainCode + " is null");
      return this;
    }

    public Criteria andDomainCodeIsNotNull() {
      addCriterion(IProductUIDomainDAO.DomainCode + " is not null");
      return this;
    }

    public Criteria andDomainCodeIsNotEmpty() {
      addCriterion(
          IProductUIDomainDAO.DomainCode
              + " is not null AND "
              + IProductUIDomainDAO.DomainCode
              + " <> ''");
      return this;
    }

    public Criteria andDomainCodeIsEmpty() {
      addCriterion(
          "("
              + IProductUIDomainDAO.DomainCode
              + " is null OR "
              + IProductUIDomainDAO.DomainCode
              + " = '')");
      return this;
    }

    public Criteria andDomainCodeEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainCode + " = ", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainCode);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeNotEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainCode + " <>", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIDomainDAO.DomainCode + " is null OR " + IProductUIDomainDAO.DomainCode + " <>",
          value,
          "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainCode);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeGreaterThan(String value) {

      addCriterion(IProductUIDomainDAO.DomainCode + " >", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainCode);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainCode + " >=", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainCode);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeLessThan(String value) {

      addCriterion(IProductUIDomainDAO.DomainCode + " <", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainCode);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeLessThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainCode + " <=", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainCode);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.DomainCode + " like", buffer.toString(), "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.DomainCode + " not like", buffer.toString(), "domainCode");
      return this;
    }

    public Criteria andDomainCodeIn(List<String> values) {

      if (values.size() == 1) {
        return andDomainCodeEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.DomainCode + " in", values, "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andDomainCodeNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.DomainCode + " not in", values, "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeIn(String[] values) {

      if (values.length == 1) {
        return andDomainCodeEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.DomainCode + " in", Arrays.asList(values), "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeNotIn(String[] values) {
      if (values.length == 1) {
        return andDomainCodeNotEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIDomainDAO.DomainCode + " not in", Arrays.asList(values), "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainCode + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.DomainCode + " between", value1, value2, "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.DomainCode + " not between", value1, value2, "domainCode");
      return this;
    }

    public Criteria andDomainNameIsNull() {
      addCriterion(IProductUIDomainDAO.DomainName + " is null");
      return this;
    }

    public Criteria andDomainNameIsNotNull() {
      addCriterion(IProductUIDomainDAO.DomainName + " is not null");
      return this;
    }

    public Criteria andDomainNameIsNotEmpty() {
      addCriterion(
          IProductUIDomainDAO.DomainName
              + " is not null AND "
              + IProductUIDomainDAO.DomainName
              + " <> ''");
      return this;
    }

    public Criteria andDomainNameIsEmpty() {
      addCriterion(
          "("
              + IProductUIDomainDAO.DomainName
              + " is null OR "
              + IProductUIDomainDAO.DomainName
              + " = '')");
      return this;
    }

    public Criteria andDomainNameEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainName + " = ", value, "domainName");
      return this;
    }

    public Criteria andDomainNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameNotEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainName + " <>", value, "domainName");
      return this;
    }

    public Criteria andDomainNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIDomainDAO.DomainName + " is null OR " + IProductUIDomainDAO.DomainName + " <>",
          value,
          "domainName");
      return this;
    }

    public Criteria andDomainNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameGreaterThan(String value) {

      addCriterion(IProductUIDomainDAO.DomainName + " >", value, "domainName");
      return this;
    }

    public Criteria andDomainNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainName + " >=", value, "domainName");
      return this;
    }

    public Criteria andDomainNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameLessThan(String value) {

      addCriterion(IProductUIDomainDAO.DomainName + " <", value, "domainName");
      return this;
    }

    public Criteria andDomainNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameLessThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.DomainName + " <=", value, "domainName");
      return this;
    }

    public Criteria andDomainNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.DomainName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.DomainName + " like", buffer.toString(), "domainName");
      return this;
    }

    public Criteria andDomainNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.DomainName + " not like", buffer.toString(), "domainName");
      return this;
    }

    public Criteria andDomainNameIn(List<String> values) {

      if (values.size() == 1) {
        return andDomainNameEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.DomainName + " in", values, "domainName");
        return this;
      }
    }

    public Criteria andDomainNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andDomainNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.DomainName + " not in", values, "domainName");
        return this;
      }
    }

    public Criteria andDomainNameIn(String[] values) {

      if (values.length == 1) {
        return andDomainNameEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.DomainName + " in", Arrays.asList(values), "domainName");
        return this;
      }
    }

    public Criteria andDomainNameNotIn(String[] values) {
      if (values.length == 1) {
        return andDomainNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIDomainDAO.DomainName + " not in", Arrays.asList(values), "domainName");
        return this;
      }
    }

    public Criteria andDomainNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.DomainName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.DomainName + " between", value1, value2, "domainName");
      return this;
    }

    public Criteria andDomainNameNotBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.DomainName + " not between", value1, value2, "domainName");
      return this;
    }

    public Criteria andStatusIsNull() {
      addCriterion(IProductUIDomainDAO.Status + " is null");
      return this;
    }

    public Criteria andStatusIsNotNull() {
      addCriterion(IProductUIDomainDAO.Status + " is not null");
      return this;
    }

    public Criteria andStatusIsNotEmpty() {
      addCriterion(
          IProductUIDomainDAO.Status + " is not null AND " + IProductUIDomainDAO.Status + " <> ''");
      return this;
    }

    public Criteria andStatusIsEmpty() {
      addCriterion(
          "("
              + IProductUIDomainDAO.Status
              + " is null OR "
              + IProductUIDomainDAO.Status
              + " = '')");
      return this;
    }

    public Criteria andStatusEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Status + " = ", value, "status");
      return this;
    }

    public Criteria andStatusEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Status);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Status + " <>", value, "status");
      return this;
    }

    public Criteria andStatusNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIDomainDAO.Status + " is null OR " + IProductUIDomainDAO.Status + " <>",
          value,
          "status");
      return this;
    }

    public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Status);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThan(String value) {

      addCriterion(IProductUIDomainDAO.Status + " >", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Status);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Status + " >=", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Status);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThan(String value) {

      addCriterion(IProductUIDomainDAO.Status + " <", value, "status");
      return this;
    }

    public Criteria andStatusLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Status);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Status + " <=", value, "status");
      return this;
    }

    public Criteria andStatusLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Status);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.Status + " like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.Status + " not like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusIn(List<String> values) {

      if (values.size() == 1) {
        return andStatusEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.Status + " in", values, "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(List<String> values) {
      if (values.size() == 1) {
        return andStatusNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.Status + " not in", values, "status");
        return this;
      }
    }

    public Criteria andStatusIn(String[] values) {

      if (values.length == 1) {
        return andStatusEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Status + " in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(String[] values) {
      if (values.length == 1) {
        return andStatusNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Status + " not in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Status + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.Status + " between", value1, value2, "status");
      return this;
    }

    public Criteria andStatusNotBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.Status + " not between", value1, value2, "status");
      return this;
    }

    public Criteria andRemarksIsNull() {
      addCriterion(IProductUIDomainDAO.Remarks + " is null");
      return this;
    }

    public Criteria andRemarksIsNotNull() {
      addCriterion(IProductUIDomainDAO.Remarks + " is not null");
      return this;
    }

    public Criteria andRemarksIsNotEmpty() {
      addCriterion(
          IProductUIDomainDAO.Remarks
              + " is not null AND "
              + IProductUIDomainDAO.Remarks
              + " <> ''");
      return this;
    }

    public Criteria andRemarksIsEmpty() {
      addCriterion(
          "("
              + IProductUIDomainDAO.Remarks
              + " is null OR "
              + IProductUIDomainDAO.Remarks
              + " = '')");
      return this;
    }

    public Criteria andRemarksEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Remarks + " = ", value, "remarks");
      return this;
    }

    public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Remarks);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksNotEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Remarks + " <>", value, "remarks");
      return this;
    }

    public Criteria andRemarksNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIDomainDAO.Remarks + " is null OR " + IProductUIDomainDAO.Remarks + " <>",
          value,
          "remarks");
      return this;
    }

    public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Remarks);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksGreaterThan(String value) {

      addCriterion(IProductUIDomainDAO.Remarks + " >", value, "remarks");
      return this;
    }

    public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Remarks);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Remarks + " >=", value, "remarks");
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Remarks);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLessThan(String value) {

      addCriterion(IProductUIDomainDAO.Remarks + " <", value, "remarks");
      return this;
    }

    public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Remarks);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLessThanOrEqualTo(String value) {

      addCriterion(IProductUIDomainDAO.Remarks + " <=", value, "remarks");
      return this;
    }

    public Criteria andRemarksLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIDomainDAO.Remarks);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.Remarks + " like", buffer.toString(), "remarks");
      return this;
    }

    public Criteria andRemarksNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIDomainDAO.Remarks + " not like", buffer.toString(), "remarks");
      return this;
    }

    public Criteria andRemarksIn(List<String> values) {

      if (values.size() == 1) {
        return andRemarksEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.Remarks + " in", values, "remarks");
        return this;
      }
    }

    public Criteria andRemarksNotIn(List<String> values) {
      if (values.size() == 1) {
        return andRemarksNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIDomainDAO.Remarks + " not in", values, "remarks");
        return this;
      }
    }

    public Criteria andRemarksIn(String[] values) {

      if (values.length == 1) {
        return andRemarksEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Remarks + " in", Arrays.asList(values), "remarks");
        return this;
      }
    }

    public Criteria andRemarksNotIn(String[] values) {
      if (values.length == 1) {
        return andRemarksNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIDomainDAO.Remarks + " not in", Arrays.asList(values), "remarks");
        return this;
      }
    }

    public Criteria andRemarksIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIDomainDAO.Remarks + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.Remarks + " between", value1, value2, "remarks");
      return this;
    }

    public Criteria andRemarksNotBetween(String value1, String value2) {
      addCriterion(IProductUIDomainDAO.Remarks + " not between", value1, value2, "remarks");
      return this;
    }
  }
}
